package com.bestcem.xm.ticket.entity.mongo;

import com.bestcem.xm.ticket.constant.ColumnConstant;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

import java.io.Serializable;
import java.util.List;

/**
 * 二次投放任务相关
 * 预警模块迁移表
 *
 * @author XiaoYunSong <ys.xiao@idiaoyan.com>
 * @version v1.0
 * @date 2021/8/10 16:13
 */
@ToString(callSuper = true)
@Getter
@Setter
public class RspdTimer extends BaseEntity {

    private static final long serialVersionUID = -1105646593093012009L;

    /**
     * 答卷查询条件
     */
    @JsonProperty(value = ColumnConstant.RspdTimer.SEARCH)
    private Search search;

    /**
     * expire
     */
    @JsonProperty(value = ColumnConstant.RspdTimer.EXPIRE)
    private Integer expire;

    /**
     * status
     */
    @JsonProperty(value = ColumnConstant.RspdTimer.STATUS)
    private Integer status;

    /**
     * rule_id_list  ObjectId 列表
     */
    @JsonProperty(value = ColumnConstant.RspdTimer.RULE_ID_LIST)
    private List<String> ruleIdList;

    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    @Getter
    @Setter
    public static class Search implements Serializable {
        private static final long serialVersionUID = 2808726620840986656L;

        /**
         * again_deliver_record_id
         */
        @JsonProperty(value = ColumnConstant.RspdTimer.Search.AGAIN_DELIVER_RECORD_ID)
        private String againDeliverRecordId;
    }
}
